#-------------------------------------------------
#
# Project created by QtCreator 2016-11-28T14:23:16
#
#-------------------------------------------------

#DEFINES += BUILD_ARM
DEFINES += BUILD_X86_LINUX
#DEFINES += BUILD_X86_WINDOWS
#DEFINES += D_FOR_AGV
DEFINES += WITH_NONAMESPACES
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets network xml

TARGET = CommunicateDelegate
TEMPLATE = lib

#DEFINES += D_FOR_DEMO

DEFINES += COMMUNICATEDELEGATE_LIBRARY

SOURCES +=   filedata.cpp \
communicatedelegate.cpp \
    communicatesavedelegate.cpp \
    communicatenormaldelegate.cpp \
    communicateupdatedelegate.cpp \
    globaldata.cpp \
    hmicommunicate.cpp \
    moveoperation.cpp \
    xmlparse.cpp

HEADERS +=     filedata.h \
communicatedelegate.h\
        communicatedelegate_global.h \
    communicatesavedelegate.h \
    communicatenormaldelegate.h \
    communicateupdatedelegate.h \
    globaldata.h \
    hmicommunicate.h \
    hmicommunicate_global.h \
    moveoperation.h \
    xmlparse.h


#INCLUDEPATH += ../ProgramSet
INCLUDEPATH += ../ProgramLanguageTranslate
INCLUDEPATH += ../../include/MacroDefine



unix {
    target.path = /usr/lib
    INSTALLS += target
}

contains( DEFINES, BUILD_X86_WINDOWS ){
message("project use BUILD_X86_WINDOWS !")
DESTDIR = ../../lib/x86_WINDOWS

INCLUDEPATH += $$PWD/gSoapFoundation_windows
SOURCES += gSoapFoundation_windows/soapClient.cpp \
           gSoapFoundation_windows/stdsoap2.cpp \
           gSoapFoundation_windows/soapC.cpp

LIBS += -lws2_32
}

contains( DEFINES, BUILD_X86_LINUX ){
message("project use BUILD_X86_LINUX !")
DESTDIR = ../../lib/x86
INCLUDEPATH += $$PWD/gSoapFoundation
SOURCES += gSoapFoundation/soapClient.cpp \
           gSoapFoundation/stdsoap2.cpp \
           gSoapFoundation/soapC.cpp

#编译目录
UI_DIR += ../../build/tmphmi/x86_linux
MOC_DIR += ../../build/tmphmi/x86_linux
OBJECTS_DIR += ../../build/tmphmi/x86_linux
RCC_DIR  += ../../build/tmphmi/x86_linux
}

contains( DEFINES, BUILD_ARM ){
message("project use BUILD_ARM !")
DESTDIR = ../../lib/arm

INCLUDEPATH += $$PWD/gSoapFoundation
SOURCES += gSoapFoundation/soapClient.cpp \
           gSoapFoundation/stdsoap2.cpp \
           gSoapFoundation/soapC.cpp

#编译目录
UI_DIR += ../../build/tmphmi_arm
MOC_DIR += ../../build/tmphmi_arm
OBJECTS_DIR += ../../build/tmphmi_arm
RCC_DIR  += ../../build/tmphmi_arm
}




